home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
BASIC
/
VIDEO.BAS
< prev
next >
Wrap
BASIC Source File
|
2000-09-26
|
634b
|
39 lines
option base 0
screen 12
line (0,0)-(640,480),15,bf
open "c:\grin\wohnumge\set8x16.chs" for binary as #1
for j=20 to 200 step 10
call WriteString("Hallo, dies ist ein Test !!!",20,j)
next
close #1
end
sub WriteString(tex$,x,y) static
xx=x
for i=1 to len(tex$)
call WriteChar(asc(mid$(tex$,i,1)),xx,y)
xx=xx+8
next
end sub
sub WriteChar(num,xx,yy) static
dim byte$(20)
num=num-32
seek #1,(num*8*2)
for r=1 to 8
get$ #1,2,byte$(r)
next
for y=1 to 8
t=cvi(byte$(y))
for x=0 to 7
c=t and (2^x)
if c=(2^x) then c=0 else c=15
pset ((xx-x),y+yy),c
next
next
end sub